package com.soledroid;

import com.github.droidfu.widgets.WebImageView;

import android.app.Activity;
import android.content.*;
import android.database.Cursor;
import android.graphics.*;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.provider.*;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

public class CheckinActivity extends Activity{
	
	protected String name;
	protected int id;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.checkin);
        
        id = getIntent().getExtras().getInt("id");
		name = getIntent().getExtras().getString("name");
        
        int stallId = getIntent().getExtras().getInt("id");
		String stallName = getIntent().getExtras().getString("name");
		
		TextView mCanteenNameView = (TextView) findViewById(R.id.canteen_name);
		mCanteenNameView.setText(name);

		WebImageView mCanteenImageView = (WebImageView) findViewById(R.id.canteen_img);
		try {
			mCanteenImageView.setImageUrl("http://soledroid.huytoan.com/canteen/" + id + "/picture");
			mCanteenImageView.loadImage();
		} catch (Exception e) {
			e.printStackTrace();
		} 
    }
	
}
